<template>
  <div class="box">
    <div class="boxtit">中铁十二局电子签名系统</div>
    <div class="boxtit1">徐州地铁SGTJ6107标</div>
    <div class="boxcont">
      <button @click="gosign">
        <div>签名</div>
        <img class="Rotation" src="../assets/images/to.png" alt="" />
      </button>
      <button @click="gopic">
        <div>照片墙</div>
        <img class="Rotation" src="../assets/images/to.png" alt="" />
      </button>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    gosign() {
      this.$router.push("/mainsign");
    },
    gopic() {
      this.$router.push("/home");
    },
  },
};
</script>


<style scoped>
html,
body {
  margin: 0;
  height: 100%;
  width: 100%;
}
* {
  padding: 0;
  margin: 0;
}

.box {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: url(../assets/images/back1.png) no-repeat;
  background-size: 100% 100%;
  min-height: 100vh;
  justify-content: flex-start;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.boxtit {
  width: 100%;
  height: 0.9rem;
  font-size: 0.4rem;
  line-height: 0.9rem;
  font-weight: 700;
  color: #9dc9cf;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: center;
  display: flex;
  align-items: center;
  font-family: Source Han Sans CN;
  font-weight: bold;
  color: rgba(255, 229, 53, 1);
  letter-spacing: 5px;
}
.boxtit1 {
  text-align: center;
  width: 4.5rem;
  height: 0.4rem;
  font-size: 0.25rem;
  line-height: 0.25rem;
  font-weight: 700;
  color: #9dc9cf;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: center;
  display: flex;
  align-items: center;
  font-family: Source Han Sans CN;
  font-weight: bold;
  color: rgba(0, 237, 248, 1);
  letter-spacing: 5px;
  background: url(../assets/images/yu.png) no-repeat;
  background-size: 100% 100%;
}

.boxcont {
  margin-top: 2.1rem;
  width: 60%;
  height: 70%;
  justify-content: center;
  display: flex;
  align-items: center;
  justify-content: space-around;
  /* background: yellowgreen; */
}

.boxcont button:first-child {
  width: 4rem;
  height: 4rem;
  /* background: url(../assets/images/tosign.png);
  background-repeat: no-repeat;
  background-size: 100% 100%; */
  background: none;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.boxcont button:first-child div,
.boxcont button:last-child div {
  position: absolute;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-family: Source Han Sans CN;
}

.boxcont button:first-child img {
  width: 4rem;
  height: 4rem;
  border-radius: 45%;
}
.boxcont button:last-child img {
  width: 4rem;
  height: 4rem;
  border-radius: 45%;
}

.boxcont button:last-child {
  width: 4rem;
  height: 4rem;
  /* background: url(../assets/images/topic.png);
  background-repeat: no-repeat;
  background-size: 100% 100%; */
  background: none;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
@keyframes rotation {
  from {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
    -ms-transform: rotate(360deg);
  }
  to {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}

.Rotation {
  -webkit-transform: rotate(360deg);
  -ms-transform: rotate(360deg);
  animation: rotation 8s linear infinite;
  -moz-animation: rotation 8s linear infinite;
  -webkit-animation: rotation 8s linear infinite;
  -o-animation: rotation 8s linear infinite;
}
</style>